package org.jim.server.demo.service;

import org.jim.core.ImChannelContext;
import org.jim.core.ImPacket;
import org.jim.core.packets.Message;
import org.jim.server.processor.other.BaseOtherCmdProcessor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import static org.jim.server.processor.ProtocolCmdProcessor.RunTypeEnum.RUN_TYPE_ASYNC;

public class OtherServiceProcessor extends BaseOtherCmdProcessor {
    private static Logger logger = LoggerFactory.getLogger(OtherServiceProcessor.class);

    @Override
    protected void doProcess(ImChannelContext imChannelContext, Message message) {
        logger.info("OtherServiceProcessor收到消息:{}",message.toJsonString());
    }

    @Override
    public RunTypeEnum getRunType() {
        return RUN_TYPE_ASYNC;
    }
}
